package cn.hznc.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

/**
 * 物料bom表
 *
 * @Author Administrator
 * @Date 2023/3/13 15:07
 */
@Getter
@Setter
@Table(name = "t_process_bom")
@TableName(value = "t_process_bom")
public class ProcessBomEntity {
    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 物料bom名称
     */
    @Column(name = "name", type = MySqlTypeConstant.VARCHAR, length = 200)
    private String name;

    /**
     * 物料清单
     */
    @Column(name = "code", type = MySqlTypeConstant.VARCHAR, length = 200)
    private String code;

    /**
     * 物料清单
     */
    @Column(name = "process_code", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "process_code")
    private String processCode;

    /**
     * 物料bom描述
     */
    @Column(name = "description", type = MySqlTypeConstant.VARCHAR, length = 200)
    private String description;

    /**
     * 版本
     */
    @Column(name = "version", type = MySqlTypeConstant.INT, length = 11)
    @TableField(value = "version")
    private Integer version;

    /**
     * 图号
     */
    @Column(name = "figure_no", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "figure_no")
    private String figureNo;

    /**
     * 图号
     */
    @Column(name = "seq", type = MySqlTypeConstant.INT, length = 11)
    @TableField(value = "seq")
    private Integer seq;

    /**
     * 数量
     */
    @Column(name = "quantity", type = MySqlTypeConstant.INT, length = 11)
    @TableField(value = "quantity")
    private Integer quantity;

}
